﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/BMP_List.master" AutoEventWireup="true"
    CodeFile="Default.aspx.cs" Inherits="Pages_MdBadWords_Default" %>
<asp:Content ID="contentHeader" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="contentSearch" ContentPlaceHolderID="contentPlaceHolderToolBar" runat="Server">
</asp:Content>
<asp:Content ID="contentMain" ContentPlaceHolderID="contentPlaceHolder" runat="Server">
    <asp:GridView ClientIDMode="Static" ID="gvInfos" runat="server" >
        <Columns>
		<asp:TemplateField  ItemStyle-Width="50">
            <HeaderTemplate>
                <input id="cbhALL" type="checkbox" onclick="SelectAll('gvInfos', this, 'cbItem');" /><label
                    for="cbhALL"></label>
            </HeaderTemplate>
            <ItemTemplate>
                <asp:CheckBox ID="cbItem" runat="server" />
            </ItemTemplate>
        </asp:TemplateField>	
		
		<asp:BoundField DataField="BadWords" SortExpression="BadWords" HeaderText="敏感词" />		
		<asp:TemplateField SortExpression="IsValid" HeaderText="是否生效"> <ItemTemplate><%# Eval("IsValid") != null && Eval("IsValid").ToString().ToLower() == "true" ? "是" : "否"%></ItemTemplate><EditItemTemplate><asp:CheckBox runat="server" ID="MdBadWordsInfo_IsValid" Checked='<%# Eval("IsValid") != null && Eval("IsValid").ToString().ToLower() == "true" ? true : false %>' /></EditItemTemplate></asp:TemplateField>		
		<asp:BoundField DataField="LastEditBy" SortExpression="LastEditBy" HeaderText="编辑人" />		
		<asp:TemplateField SortExpression="LastEditDate" HeaderText="编辑日期"><ItemTemplate><%# Eval("LastEditDate")%></ItemTemplate><EditItemTemplate><asp:TextBox runat="server" ID="MdBadWordsInfo_LastEditDate" onclick="WdatePicker();" Text='<%# Eval("LastEditDate")%>' /></EditItemTemplate> </asp:TemplateField>		
		<asp:CommandField ShowEditButton="true" EditText="编辑" HeaderText="编辑" ItemStyle-Width="80" />
     
        <asp:TemplateField HeaderText="删除" ItemStyle-Width="50">
        <ItemTemplate>
        <asp:LinkButton ID="lbDelete" Text="删除" CausesValidation="true" CommandName="Delete"
                    OnClientClick="return confirm('确定删除吗？');" runat="server">
        </asp:LinkButton>
        </ItemTemplate>
        </asp:TemplateField>
        <asp:HyperLinkField HeaderText="修改" Text="修改" DataNavigateUrlFields="ManageEditURI"
            ItemStyle-Width="50" />			
        </Columns>
    </asp:GridView>
</asp:Content>
